import http from '@/utils/http';

const resource = {
  //获取资源列表
  query(params: any) {
    let url = '/admin/Resource/Query';
    return http.post(url, params);
  },
  //资源详情
  detail(id: Number) {
    let url = '/admin/Resource/Detail';
    let params = { id: id };
    return http.get(url, params);
  },
  //资源保存
  save(operate: Object) {
    let url = '/admin/Resource/Save';
    return http.post(url, operate);
  },
};
export default resource;
